package com.deuwise.system.entity.message;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 *  实体 接口
 * </p>
 *@author chenwenchao
 *@date 2020-02-20 10:36:29
 */
@Data
@TableName("tb_message_send")
@ApiModel(value = "消息发送详情")
public class MessageSendDo {

    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "关联消息id")
    @TableField("message_id")
    private String messageId;

    @ApiModelProperty(value = "关联用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "状态 0默认未读 1已读 2回收站")
    private Integer status = 0;

    @TableField(exist=false)
    @ApiModelProperty(value = "发送用户名")
    private String userName;

    @TableField(exist=false)
    @ApiModelProperty(value = "消息标题")
    private String title;

    @TableField(exist=false)
    @ApiModelProperty(value = "消息内容")
    private String content;

    @TableField(exist=false)
    @ApiModelProperty(value = "消息类型 0 全体 1个人")
    private String type;

    @TableField(exist=false)
    @ApiModelProperty(value = "发送范围 0 全体，1个人")
    private Integer range=0;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_date")
    private Date createDate;
}
